import service from '@/utils/request'

// @Tags MarksBill
// @Summary 创建MarksBill
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MarksBill true "创建MarksBill"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /marksBill/createMarksBill [post]
export const createMarksBill = (data) => {
  return service({
    url: '/marksBill/createMarksBill',
    method: 'post',
    data
  })
}

// @Tags MarksBill
// @Summary 删除MarksBill
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MarksBill true "删除MarksBill"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /marksBill/deleteMarksBill [delete]
export const deleteMarksBill = (data) => {
  return service({
    url: '/marksBill/deleteMarksBill',
    method: 'delete',
    data
  })
}

// @Tags MarksBill
// @Summary 删除MarksBill
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MarksBill"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /marksBill/deleteMarksBill [delete]
export const deleteMarksBillByIds = (data) => {
  return service({
    url: '/marksBill/deleteMarksBillByIds',
    method: 'delete',
    data
  })
}

// @Tags MarksBill
// @Summary 更新MarksBill
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MarksBill true "更新MarksBill"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /marksBill/updateMarksBill [put]
export const updateMarksBill = (data) => {
  return service({
    url: '/marksBill/updateMarksBill',
    method: 'put',
    data
  })
}

// @Tags MarksBill
// @Summary 用id查询MarksBill
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MarksBill true "用id查询MarksBill"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /marksBill/findMarksBill [get]
export const findMarksBill = (params) => {
  return service({
    url: '/marksBill/findMarksBill',
    method: 'get',
    params
  })
}

// @Tags MarksBill
// @Summary 分页获取MarksBill列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MarksBill列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /marksBill/getMarksBillList [get]
export const getMarksBillList = (params) => {
  return service({
    url: '/marksBill/getMarksBillList',
    method: 'get',
    params
  })
}
